package com.ruicar.afs.cloud.product.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author yaorui.zhang
 * @version 1.0
 * @date 2020年5月13日10:46:36
 */
@Data
@ApiModel(value = "产品贴息方案表")
@TableName("product_discount_plan")
public class ProductDiscountPlan extends BaseEntity<ProductDiscountPlan> {

    @ApiModelProperty(value = "贴息编号")
    private String discountNo;

    @ApiModelProperty(value = "贴息方案名称")
    private String discountPlanName;

    @ApiModelProperty(value = "贴息计算方式;折现、非折现、灵活贴息")
    private String discountCalculateMethod;

    @ApiModelProperty(value = "补贴分成方式;按顺序、按比例")
    private String discountShareMethod;

    @ApiModelProperty(value = "贴息来源;选择贴息来源数据表信息")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long discountSource;

    @ApiModelProperty(value = "状态;0-失效；1-生效")
    private String status;
}
